package com.aliyun.heiyu.powermaster.server;

import io.grpc.*;
import static io.grpc.Metadata.ASCII_STRING_MARSHALLER;

/**
 * Created by rayt on 10/6/16.
 */
public class Constant {

    //用户ip
    public static final Context.Key<String> USER_IP_KEY = Context.key("user_ip");
    //从Metadata获取ip
    public static final Metadata.Key<String> X_FORWARDED_FOR_METADATA_KEY = Metadata.Key.of("x-forwarded-for", ASCII_STRING_MARSHALLER);

}